home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CUCD / Programming / AMOSList / AMOSLIST / text0350.txt < prev    next >
Encoding:
Text File  |  1998-04-01  |  1.2 KB  |  26 lines

  1. On 29-Mar-98, Alastair Murray smashed the keyboard with:
  2. > Use the same technique I said except use Text Length(T$) to get the
  3. > width in pixels of the text.
  4. > Remember that if the font has height H and you do Text X,Y,A$
  5. > Then the top left of the text is at X,Y-H and the bottom right is at
  6. > X+Text Length(A$),Y.
  7. > Just set a zone to these coords.
  8.  
  9. NO !! The UL-corner of text is NOT in Y-H, it's in Y-Text Base...
  10. eg. for topaz-8 (standard) the height is 8, but the text base is 7..
  11. -- 
  12. Kind regards from
  13. ______________________________________________________________________________
  14.  /_  __/ __  / __  /\  ___\  __ \__  _\               aka. JENS VANG PETERSEN
  15.   / / / /_/ / ____/  \ \___\  __ \ \ \                  top_cat@post8.tele.dk
  16.  /_/ /_____/_/        \_____\_\ \_\ \_\
  17. ------------------------------------------------------------------------------
  18.                     http://home8.inet.tele.dk/top_cat/
  19.   -+-    Home of 'The Ultimate Extension list' for AMOS TC & AMOS PRO    -+-
  20.             -+-  SUPPORT - AMOS - AMIGA - AQUA - STARTREK TNG  -+-
  21. ------------------------------------------------------------------------------
  22.  Foolproof operation:  All parameters are hard coded.
  23. ------------------------------------------------------------------------------
  24.  
  25.  
  26.